import Qt 4.7

Item {
    id: main
    width: 30
    height: 30

    PathView {
        id: loadingWheel
        model: 8

        interactive: false

        PropertyAnimation {
            target: loadingWheel
            property: "offset"
            running: true
            loops: Animation.Infinite
            from: 0.0
            to: 6.0
            duration: 2000
        }

        path: Path {
             startX: 0; startY: 0
             PathAttribute { name: "elemColor"; value: 0.5 }
             PathQuad { x: main.width; y: 0; controlX: main.width/2; controlY: -main.height/2 }
             PathQuad { x: main.width; y: main.height; controlX: main.width*1.5; controlY: main.height/2 }
             PathAttribute { name: "elemColor"; value: 0.9 }
             PathQuad { x: 0; y: main.height; controlX: main.width/2; controlY: main.height * 1.5 }
             PathQuad { x: 0; y: 0; controlX: -main.width/2; controlY: main.height/2 }
        }

        delegate: Rectangle {
            width: main.width / 2.5
            height: main.height / 2.5
            radius: main.width / 5
            color: "#f5bc53";
        }
    }
}
